/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.swing2;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author WORKSPOT2
 */
public class MainFrame extends JFrame
{

    public MainFrame()
    {
        setSize(200, 200);
        ButtonPanel panel = new ButtonPanel();
        add(panel);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
    }

    class ButtonPanel extends JPanel
    {

        public ButtonPanel()
        {
            JButton ok = new JButton("OK");
            JButton cancel = new JButton("Cancel");
            add(ok);
            add(cancel);
        }
    }
}
